package models

type Product struct {
	ID   int64  `gorm:"column:id;primary_key;auto_increment"`
	Name string `gorm:"column:name;type:varchar(255)"`
}

// TableName 指定表
func (product *Product) TableName() string {
	return "product_main"
}
